import {useColorScheme} from 'nativewind';
import {config} from '~/config';

export const useThemeColor = (color: keyof (typeof config)['light']) => {
  const {colorScheme} = useColorScheme();
  return config[colorScheme as 'light'][color];
};
